package com.ijiuchuang.jc_localization.bean.lite;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by Veev on 2016/6/12
 *
 * @link 384506557@qq.com
 */
@Table("Tag")
public class Tag extends BaseModel {

    // 列名
    public static final String COL_MAC = "mac";
    public static final String COL_NAME = "name";
    public static final String COL_IS_SHOW = "isShow";

    @PrimaryKey(AssignType.BY_MYSELF)
    @NotNull
    @Column(COL_MAC)
    private String mac;

    @Column(COL_NAME)
    private String name;
    @Column(COL_IS_SHOW)
    private boolean isShow;

    public Tag(String mac, String name) {
        this.mac = mac;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Tag{" +
                "mac = '" + mac + '\'' +
                "name = '" + name + '\'' +
                "isShow = '" + isShow + '\'' +
                '}';
    }

    public String getMac() {
        return mac;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }
}
